<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Hire extends Model
{
    use HasFactory;
    protected $fillable = ['company_id','company_name','title','description','department','salary_min','salary_max','salary_type','location','experience','education','headcount','status','deadline'];

    const POSTONLY = ['company_id','company_name','title','description','department','salary_min','salary_max','salary_type','location','experience','education','headcount','status','deadline'];

    protected function serializeDate(\DateTimeInterface $date)
    {
        return $date->format($this->dateFormat ?: 'Y-m-d H:i:s');
    }

}
